/*!
Copyright (c) REBUILD <https://getrebuild.com/> and/or its owners. All rights reserved.

rebuild is dual-licensed under commercial and open source licenses (GPLv3).
See LICENSE and COMMERCIAL in the project root for license information.
*/

html,
body {
  overflow: auto;
  height: 100%;
}

.view-body .main-content {
  padding: 20px 25px;
  margin-top: 60px;
}

.view-body .related-list > .list-nodata {
  padding: 41px 0;
}

.view-body.loading .main-content {
  display: none;
}

@keyframes spinAnimation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.view-body.loading .view-header .zmdi-refresh {
  animation: spinAnimation 1s infinite linear;
}

.tab-container {
  margin-top: -8px;
  padding-right: 4px;
}

.tab-content {
  margin: 0;
  padding: 13px 0 0;
}

.view-header {
  padding: 15px 20px;
  height: 61px;
  border-bottom: 1px solid #e6e6e6;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  background-color: #fff;
  background-color: rgba(255, 255, 255, 0.9);
  background-color: rgba(230, 230, 230, 0.8);
  border-bottom-color: rgba(230, 230, 230, 1);
}

.view-header .header-icon {
  float: left;
}

.view-header .title {
  line-height: 1.428571;
  display: inline-block;
  margin: 0;
  font-weight: 300;
  font-size: 1.538rem;
  max-width: 80%;
}

.view-header > span > .close {
  font-size: 1.638rem;
  opacity: 0.6;
  padding: 1rem;
  height: 40px;
  margin: -7px -1rem -1rem auto;
}

.view-header > span > .close.sm {
  font-size: 1.45rem;
  margin-right: -7px;
}

.view-header > span > .close:hover {
  opacity: 0.8;
}

.rbview-form > .row .form-group {
  padding-top: 4px;
  padding-bottom: 4px;
}

.rbview-form .form-control-plaintext {
  min-height: 37px;
}



.rbview-form .type-NTEXT .form-control-plaintext {
  max-height: 72px;
  position: relative;
  word-break: break-all;
}

.rbview-form .type-NTEXT .form-control-plaintext > p {
  margin: 0;
  line-height: 1.428571;
}

.rbview-form .type-NTEXT.col-sm-12 .form-control-plaintext {
  max-height: 134px;
}

.rbview-form .type-NTEXT .form-control-plaintext.mdedit-content {
  max-height: 1001px;
}

.rbview-form .type-NTEXT .ntext-action {
  position: absolute;
  top: 5px;
  right: 5px;
  opacity: 0;
  transition: opacity 0.4s;
}

.rbview-form .type-NTEXT.editable .ntext-action {
  right: 24px;
}

.rbview-form .type-NTEXT .ntext-action > a {
  background-color: #eee;
  background-color: #f8f9fa;
  color: #aaa;
  width: 24px;
  height: 24px;
  display: inline-block;
  margin-right: 5px;
  font-size: 16px;
  text-align: center;
  padding-top: 2px;
  border-radius: 2px;
}

.rbview-form .type-NTEXT .col-form-control:hover .ntext-action {
  opacity: 1;
}

.rbview-form .type-NTEXT .ps-container.ntext-expand {
  max-height: unset !important;
}

.rbview-form .type-NTEXT .ps-container.ntext-expand + .ntext-action .mdi-arrow-expand::before {
  content: '\F0615';
}

.nav-tabs > li.nav-item a.nav-link {
  padding: 11px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-tabs,
.nav-tabs > li.nav-item {
  position: relative;
}

.nav-tabs .vtab-settings {
  position: absolute;
  right: 0;
  top: 3px;
  padding: 9px 8px;
  font-size: 1.2rem;
  opacity: 0.6;
  display: none !important;
}

.nav-tabs .vtab-settings:hover {
  opacity: 0.8;
}

.nav-tabs:hover .vtab-settings {
  display: inline-block !important;
}

.nav-tabs .badge {
  position: absolute;
  top: -1px;
  right: -4px;
  font-size: 0.8462rem;
  font-weight: normal;
  line-height: 1.2;
}

.related-list {
  min-height: 200px;
}

.related-list .card {
  border: 1px solid #ebebeb;
  padding: 0;
  margin-bottom: 9px;
}

.related-list .card:hover {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.related-list .card .header-title {
  padding: 10px 0;
  margin: 0;
  cursor: default;
  position: relative;
}

.related-list .card .header-title::after {
  position: absolute;
  font: normal normal normal 14px/1 'Material-Design-Iconic-Font';
  content: '\f278';
  color: #aaa;
  right: 15px;
  margin-top: 2px;
  font-size: 1.2rem;
}

.related-list .card .header-title .record-meta {
  padding-right: 30px;
  text-align: right;
}

.related-list .card .header-title .record-meta .badge {
  margin-right: 13px;
}

.related-list .card .header-title .record-meta a.edit {
  color: #999;
  font-size: 1.231rem;
  margin-left: -38px;
  margin-top: -2px;
  position: absolute;
  display: none;
  padding: 0 10px;
}

.related-list .card .header-title .record-meta a.edit:hover {
  color: #4285f4;
}

.related-list .card:hover .header-title .record-meta a.edit,
.related-list .card.active .header-title .record-meta a.edit {
  display: inline-block;
}

.related-list .related-toolbar {
  margin-bottom: 13px;
}

.related-list .related-toolbar.feeds {
  border-bottom: 1px solid #ebebeb;
  padding-bottom: 13px;
}

.related-list .card-table {
  border: 1px solid #ebebeb;
  border: 1px solid #dee2e6;
  border-radius: 3px;
}

.related-list .card-table .data-list .table th {
  border-top: 0 none;
}

.view-operating {
  padding-top: 3px;
  padding-left: 5px;
}

@media (max-width: 768px) {
  .view-operating {
    padding-left: 15px;
  }
}

.view-operating > div {
  margin-top: 15px;
}

.view-operating > div.view-action {
  margin-top: 30px;
}

.view-operating .form-line {
  margin-bottom: 10px;
}

.view-operating dt {
  font-weight: normal;
}

.view-action .col-lg-6 {
  margin-bottom: 0.769231rem;
}

.view-action .col-lg-6:nth-child(odd) {
  padding-right: 5px;
}

.view-action .col-lg-6:nth-child(even) {
  padding-left: 5px;
}

.view-action .col-lg-6 .btn {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 991px) {
  .view-action .col-lg-6 {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

.view-date .col-lg-4,
.view-user .col-lg-4 {
  padding-right: 0;
  color: #222;
}

.view-user .col-lg-8 {
  min-height: 30px;
  margin-top: -6px;
  margin-bottom: 0;
  padding-right: 0;
  padding-left: 0;
}

.view-date .col-lg-8 {
  padding-right: 0;
  padding-left: 0;
}

@media (max-width: 991px) {
  .view-user .col-lg-8,
  .view-date .col-lg-8 {
    padding-left: 15px;
    margin-top: 5px;
  }
}

.view-user .row ul > li {
  margin-bottom: 0;
  margin-right: 7px;
  line-height: 1;
}

.view-user .row ul > li:last-child {
  margin-right: 0;
}

.view-user .row:last-child {
  margin-bottom: 0;
  margin-top: 18px;
  min-height: 36.5px;
}

.view-user .user-show {
  line-height: 1;
}

.shares-list {
  min-height: 60px;
}

.shares-list .user-avatar {
  line-height: 30px;
  color: #444;
}

.shares-list .badge-light {
  font-weight: normal;
}

.shares-list .table > tbody td {
  padding: 8px 10px;
  border-width: 0;
}

.load-mores {
  border-top: 1px solid #eee;
  height: 34px;
  margin-top: 34px;
}

.load-mores .btn {
  width: 160px;
  line-height: 1.8rem;
  min-height: 2.6rem;
  border-radius: 99px;
  font-size: 12px;
}

.load-mores > div {
  width: 180px;
  background-color: #fff;
  margin: -1.4rem auto 0;
}

.load-mores > .btn {
  display: inline-block;
  margin-top: -1.4rem;
}

.load-mores.load-end {
  border: 0 none;
  margin: 15px 0;
  height: auto;
}

.load-mores.load-end > div {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  margin: 0 auto;
  border-radius: 99px;
}



.rbview-form .form-group.editable a.edit {
  position: absolute;
  right: 0;
  top: 0;
  color: #aaa;
  width: 24px;
  height: 24px;
  margin-top: 5px;
  padding-top: 1px;
  text-align: center;
  border-radius: 2px;
  background-color: #f8f9fa;
  display: none;
}

.rbview-form .form-group.editable a.edit::before {
  font-family: 'Material-Design-Iconic-Font', serif;
  content: '\f158';
  font-size: 16px;
  display: inline-block;
}

.rbview-form .form-group.editable a.edit:hover,
.rbview-form .type-NTEXT .ntext-action > a:hover {
  color: #4285f4;
}

.rbview-form .form-group.editable a.edit:active,
.rbview-form .type-NTEXT .ntext-action > a:active {
  box-shadow: inset 0 2px 0 #e6e6e6;
  background-color: #f0f0f0;
}

.rbview-form .form-group.editable > div:hover > a.edit {
  display: block;
}

.rbview-form .form-group.editable > div .edit-oper {
  text-align: right;
}

.rbview-form .form-group.editable > div .edit-oper .btn {
  width: 28px;
  height: 28px;
  overflow: hidden;
  line-height: 1.1;
  padding: 0;
  min-width: 0;
  min-height: 0;
  font-weight: bold;
}

.rbview-form.readonly .form-group.editable a.edit {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.type-AVATAR .edit-oper,
.type-BOOL .edit-oper,
.type-FILE .edit-oper,
.type-MULTISELECT .edit-oper,
.type-IMAGE .edit-oper,
.type-SIGN .edit-oper {
  border-top: 1px solid #dbdbdb;
}

.type-AVATAR .edit-oper,
.type-SIGN .edit-oper {
  margin-top: 6px;
}

.type-IMAGE .edit-oper {
  margin-top: -2px;
}

.type-MULTISELECT .edit-oper {
  margin-top: -1px;
}

.rbview-form .img-field .img-upload.img-thumbnail.zoom-in {
  background-color: transparent;
}

.rbview-form.inside {
  display: none;
  padding: 10px 15px;
}

.rbview-form.inside > .rb-loading {
  height: 60px;
}

.rbview-form.inside > .alert {
  margin: 10px auto !important;
}

.card.active .rbview-form.inside {
  display: block;
}

.card.active .header-title {
  background-color: #eee;
}

.card.active .header-title::after {
  content: '\f273';
}

.modal-body .feed-options.related {
  display: none;
}

.view-history .view-history-items {
  padding: 0;
  margin: 0;
  position: relative;
}

.view-history .view-history-items::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 20px;
  width: 2px;
  background: #ddd;
  left: 6px;
}

.view-history .view-history-items > li {
  position: relative;
  padding-left: 24px;
  height: 28px;
  color: #777;
}

.view-history .view-history-items > li::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 1px;
  width: 12px;
  height: 12px;
  background-color: #ddd;
  border-radius: 50px;
  border: 2px solid #fff;
}

.view-history .view-history-items > li b:first-child {
  font-weight: normal;
}

.CodeMirror-fullscreen {
  top: 110px;
}

.editor-toolbar.fullscreen {
  top: 60px;
}

.mdedit-content p,
.editor-preview p {
  margin-bottom: 0.75em !important;
  line-height: 1.428571 !important;
}



.feeds-list.inview {
  border-top: 1px solid #eee;
}

.feeds-list.inview > div {
  position: relative;
  padding: 12px 1px 2px;
  border-bottom: 1px solid #eee;
  margin: 0;
}

.feeds-list.inview .feeds + .actions {
  border: 0 none;
  padding: 0;
  margin: -32px 0 0;
}

.feeds-list.inview .feeds > .content .rich-content > .appends a:not([href]):not([tabindex]) {
  cursor: default;
}

.feeds-list.inview .J_relatedRecord a {
  color: #444;
  cursor: text;
}

.tasks-list.inview .card:hover {
  box-shadow: 0 0 0 #fff;
}

.tasks-list.inview .header-title .title {
  padding-left: 45px;
}

.tasks-list.inview .header-title .title .custom-control {
  position: absolute;
  left: 15px;
  margin: 0;
}

.tasks-list.inview .header-title::after {
  content: '';
}

.tasks-list.inview .header-title .task-meta {
  text-align: right;
  color: #878787;
  font-size: 12px;
  padding-top: 1px;
}

.tasks-list.inview .header-title .task-meta > span {
  margin-left: 10px;
  position: relative;
}

.tasks-list.inview .header-title .task-meta > span + span::before {
  content: '·';
  margin-right: 10px;
  font-weight: bolder;
}

.tasks-list.inview .header-title .task-meta > span .avatar {
  position: absolute;
  margin-top: -4px;
  margin-left: -24px;
  cursor: default;
}

.tasks-list.inview .header-title .task-meta > span img {
  width: 26px;
  height: 26px;
}

.tasks-list.inview .card.priority-2 .header-title,
.tasks-list.inview .card.priority-3 .header-title {
  border-left: 4px solid #f7b904;
}

.tasks-list.inview .card.priority-3 .header-title {
  border-left-color: #ea3f30;
}

.tasks-list.inview .card.priority-2 .header-title .title,
.tasks-list.inview .card.priority-3 .header-title .title {
  padding-left: 41px;
}

.tasks-list.inview .card.priority-2 .header-title .title .custom-control,
.tasks-list.inview .card.priority-3 .header-title .title .custom-control {
  left: 11px;
}

.tasks-list.inview .card.status-1 .title {
  color: #8c8c8c;
  opacity: 0.5;
}

.tasks-list.inview .card.status-1 .title a {
  color: #8c8c8c;
}

.map-show {
  height: 100px;
  margin-bottom: 4px;
}

.type-LOCATION.col-sm-6 .map-show {
  height: 200px;
}

.type-LOCATION.col-sm-9 .map-show {
  height: 300px;
}

.type-LOCATION.col-sm-12 .map-show {
  height: 400px;
}

.form-control-plaintext.multi-values {
  padding-top: 4px;
  padding-bottom: 3px;
}

.form-control-plaintext.multi-values > a,
.form-control-plaintext.multi-values > span {
  border-radius: 3px;
  padding: 1px 6px;
  margin-right: 4px;
  margin-bottom: 3px;
  display: inline-block;
  border: 1px solid #ccc;
  background-color: #fff;
  line-height: 21px;
}

.file-list.inview {
  border-top: 1px solid #eee;
}

.file-list.inview .file-list-item {
  padding-left: 10px;
  padding-right: 1px;
}

.file-list.inview .file-list-item:hover {
  background-color: transparent !important;
}

.type-PICKLIST .form-control-plaintext .badge,
.type-STATE .form-control-plaintext .badge {
  font-size: 13px;
  line-height: 17px;
  border: 0 none;
  font-weight: normal;
  color: #fff;
  border-radius: 99px;
  padding: 3px 6px;
}

.type-PICKLIST .form-control-plaintext,
.type-STATE .form-control-plaintext {
  padding-top: 5px;
  padding-bottom: 5px;
}



.modal-body.approved-steps-body {
  min-height: 55px;
}

.timeline.approved-steps {
  padding-bottom: 0;
  margin-bottom: 0;
  margin-top: 5px;
  margin-right: 15px;
}

.timeline.approved-steps::before {
  top: 25px;
  left: 108px;
}

.timeline.approved-steps > div.no-joint {
  border-right: 3px solid #409eff;
  border-radius: 9px;
}

.timeline.approved-steps > div.joint {
  border-right: 3px solid #409eff;
  border-radius: 6px;
  margin-right: 30px;
  position: relative;
}

.timeline.approved-steps > div.joint:empty {
  display: none;
}

.timeline.approved-steps > div.joint::after {
  position: absolute;
  content: attr(_title);
  right: -35px;
  top: 50%;
  margin-top: -10px;
  font-size: 12px;
  color: #777;
}

.timeline.approved-steps .timeline-item {
  padding-left: 140px;
  margin-bottom: 15px;
}

.timeline.approved-steps .timeline-item::before {
  top: 16px;
  left: 100px;
  border-color: #f7b904;
  background-color: #fff;
}

.timeline.approved-steps .timeline-item.state0::before {
  border-color: #fff;
  background-color: #4285f4;
}

.timeline.approved-steps .timeline-item.state10::before {
  border-color: #fff;
  background-color: #33a451;
}

.timeline.approved-steps .timeline-item.state11::before,
.timeline.approved-steps .timeline-item.state21::before {
  border-color: #fff;
  background-color: #ea3f30;
}

.timeline.approved-steps .timeline-item.state12::before,
.timeline.approved-steps .timeline-item.state13::before {
  border-color: #fff;
  background-color: #f7b904;
}

.timeline.approved-steps .timeline-item.state1::before {
  border: 0 none;
  background-color: #fff;
  content: '\f337';
  font-family: 'Material-Design-Iconic-Font', serif;
  color: #f7b904;
  font-size: 20px;
  margin-top: -2px;
}

.timeline.approved-steps .timeline-content {
  padding: 8px 15px;
  min-height: 48px;
  box-shadow: 0 0 #fff;
  background-color: #f5f5f5;
}

.timeline.approved-steps .timeline-content::before {
  top: 19px;
  background-color: #f5f5f5;
}

.timeline.approved-steps .timeline-date {
  top: 16px;
  line-height: 1.2;
  width: 80px;
}

.timeline.approved-steps .timeline-avatar {
  height: 32px;
  width: 32px;
}

.timeline.approved-steps .timeline-header > .blockquote {
  margin-top: 5px;
  padding: 2px 10px;
}

.timeline.approved-steps .timeline-header > .blockquote.cc {
  border-left: 0 none;
  padding-left: 0;
}

.timeline.approved-steps .timeline-header > .blockquote.cc a {
  color: #404040;
}

.timeline.approved-steps .timeline-header > .blockquote.cc a + a::before {
  content: ',';
  margin-left: 1px;
  margin-right: 4px;
  color: #8a8a8a;
}

.timeline.approved-steps .timeline-activity > .badge {
  padding: 2px 6px;
  line-height: 1;
  font-size: 12px;
  margin-left: 5px;
  cursor: help;
  border-radius: 99px 99px 99px 0;
  transform: translateY(-1px);
}

.timeline.approved-steps .timeline-item.last {
  position: relative;
  min-height: 30px;
  margin-top: -7px;
  margin-bottom: 5px;
}

.timeline.approved-steps .timeline-item.last > span {
  position: absolute;
  background-color: #dbdbdb;
  color: #777;
  border-radius: 50px;
  padding: 2px 6px;
  width: 50px;
  font-size: 12px;
  margin-left: -57px;
  margin-top: 8px;
  text-align: center;
}

.timeline.approved-steps > strong {
  padding-left: 140px;
  display: block;
}

.timeline.approved-steps .timeline-content p > a.action {
  position: absolute;
  right: 15px;
}

.report-list ul > li {
  position: relative;
}

.report-list ul > li.has-preview > a,
.report-list ul > li.has-pdf > a,
.report-list ul > li.has-html > a {
  margin-right: 40px;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.report-list ul > li.has-preview.has-pdf > a,
.report-list ul > li.has-preview.has-html > a,
.report-list ul > li.has-pdf.has-html > a {
  margin-right: 80px;
}

.report-list ul > li.has-preview.has-pdf.has-html > a {
  margin-right: 120px;
}

.report-list ul > li > span {
  position: absolute;
  right: 0;
  top: 0;
}

.report-list ul > li > span > a {
  width: 38px;
  height: 38px;
  text-align: center;
  display: inline-block !important;
  margin-left: 2px;
  border-radius: 0 !important;
}

.report-list ul > li > span > a:last-child {
  border-top-right-radius: 2px !important;
  border-bottom-right-radius: 2px !important;
}

.report-list ul > li > span > a > .mdi {
  float: none !important;
  display: block !important;
  color: #555 !important;
}

.report-list ul > li > span > a:hover > .mdi {
  color: #fff !important;
}

.switch-view-mode .btn {
  border-radius: 4px;
  border: 0 none;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.switch-view-mode .btn .icon {
  margin-top: 5px;
  display: inline-block;
}

.switch-view-mode .btn.active .icon {
  color: var(--rb-btn-active-color) !important;
}

@media (min-width: 768px) {
  .view-body .col-md-3 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 21%;
    flex: 0 0 21%;
    max-width: 21%;
  }

  .view-body .col-md-9 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 79%;
    flex: 0 0 79%;
    max-width: 79%;
  }
}

.tab-content-bottom .tab-pane-bottom {
  padding: 0;
  margin-top: 25px;
  margin-bottom: 5px;
}

.tab-content-bottom .tab-pane-bottom h5 {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 14px !important;
  background-color: #eceff1;
  padding: 12px 15px;
  border-radius: 2px;
}

.tab-content-bottom .tab-pane-bottom h5 > i {
  margin-right: 10px;
  font-size: 15px;
}

.tab-content-bottom .tab-pane-bottom h5 > a {
  float: right;
  font-size: 1.5rem;
  width: 22px;
  height: 22px;
  display: block;
  text-align: right;
  margin-top: -2px;
}

.tab-content-bottom .tab-pane-bottom h5 > a:hover {
  color: #4285f4;
}

.tab-content-bottom .tab-pane-bottom.toggle-hide > div {
  display: none;
}

.tab-content-bottom .tab-pane-bottom.toggle-hide h5 > a.icon::before {
  content: '\f2fb' !important;
}

.tab-content-bottom .related-list {
  min-height: auto;
}

.view-header > span > .close.J_list,
.view-header > span > .close.J_back {
  font-size: 1.6rem;
}

.view-action.invisible2,
.view-history.invisible2 {
  display: none;
}
